import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
// 导入样式重置 和公共样式
import "./assets/style/common.css";
// 引入字体图标
import "./assets/style/iconfont.css";

// 安装 npm install vue-awesome-swiper@3.1.3 –save
import vueSwiper from "vue-awesome-swiper";

import "swiper/css/swiper.css";
// 图片懒加载插件
import VueLazyLoad from "vue-lazyload";
Vue.use(vueSwiper);
// 全局配置图片懒加载插件
Vue.use(VueLazyLoad, {
    //未加载显示的内容
    loading: "",
});
// eventBus 传值
Vue.prototype.$bus = new Vue({});

Vue.config.productionTip = false;

// 全局路由守卫
// router.beforeEach((to, from, next) => {});

new Vue({
    router,
    store,
    render: (h) => h(App),
}).$mount("#app");